-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move TestExporter to avoid requiring pytest #368
Conversation
Deploying logfire-docs with Cloudflare Pages
|
@@ -75,6 +74,7 @@ | |||
from .exporters.quiet_metrics import QuietMetricExporter | |||
from .exporters.remove_pending import RemovePendingSpansExporter | |||
from .exporters.tail_sampling import TailSamplingOptions, TailSamplingProcessor | |||
from .exporters.test import TestExporter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kludex it's not critical but I don't know why there isn't a stub for exporters.test
when I run rye run generate-stubs
. There's other stubs in the exporters
folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's because the testing
module is not in the __init__.py
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm talking about logfire._internal.exporters.test
, not logfire.testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, because we don't include private objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd need to add --include-private
on the stubgen
command for it to appear, I think...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But all the other internal exporter files are there
Closes #367